const db = require('./db')

const filmSchema = new db.mongoose.Schema({

    movieposter: {
        type: String,
        required: true
    },
    filmintroduction: {
        type: String,
        required: true,
    },
    actornames: {
        type: String,
        required: true,
    },
    type: {
        type: String,
        required: true,
    }, name: {
        type: String,
    }

})


module.exports = db.mongoose.model('films', filmSchema)